export default [
  // { path: '/', component: '@/pages/index' },
  {
    path: '/',
    component: '@/layouts/base-layouts',
    routes: [
      { path: '/login', component: '@/pages/login' },
      { path: '/reg', component: '@/pages/reg' },
      {
        path: '/goods',
        wrappers: ['@/wrappers/auth'],
        component: '@/pages/goods',
        routes: [
          { path: '/goods/:id', component: '@/pages/goods/goodsDetail' },
        ]
      },
      { path: '/', component: '@/pages/index' },
      { component: '@/pages/404' },
    ]
  },
  { component: '@/pages/404' },
];
